import service from '@/utils/request'

// @Tags DdmsSpecDrawingHistory
// @Summary 创建规格图-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingHistory true "创建规格图-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ddmsSpecDrawingHistory/createDdmsSpecDrawingHistory [post]
export const createDdmsSpecDrawingHistory = (data) => {
  return service({
    url: '/ddmsSpecDrawingHistory/createDdmsSpecDrawingHistory',
    method: 'post',
    data
  })
}

// @Tags DdmsSpecDrawingHistory
// @Summary 删除规格图-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingHistory true "删除规格图-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingHistory/deleteDdmsSpecDrawingHistory [delete]
export const deleteDdmsSpecDrawingHistory = (params) => {
  return service({
    url: '/ddmsSpecDrawingHistory/deleteDdmsSpecDrawingHistory',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingHistory
// @Summary 批量删除规格图-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除规格图-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingHistory/deleteDdmsSpecDrawingHistory [delete]
export const deleteDdmsSpecDrawingHistoryByIds = (params) => {
  return service({
    url: '/ddmsSpecDrawingHistory/deleteDdmsSpecDrawingHistoryByIds',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingHistory
// @Summary 更新规格图-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingHistory true "更新规格图-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ddmsSpecDrawingHistory/updateDdmsSpecDrawingHistory [put]
export const updateDdmsSpecDrawingHistory = (data) => {
  return service({
    url: '/ddmsSpecDrawingHistory/updateDdmsSpecDrawingHistory',
    method: 'put',
    data
  })
}

// @Tags DdmsSpecDrawingHistory
// @Summary 用id查询规格图-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DdmsSpecDrawingHistory true "用id查询规格图-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ddmsSpecDrawingHistory/findDdmsSpecDrawingHistory [get]
export const findDdmsSpecDrawingHistory = (params) => {
  return service({
    url: '/ddmsSpecDrawingHistory/findDdmsSpecDrawingHistory',
    method: 'get',
    params
  })
}

// @Tags DdmsSpecDrawingHistory
// @Summary 分页获取规格图-历史快照列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取规格图-历史快照列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ddmsSpecDrawingHistory/getDdmsSpecDrawingHistoryList [get]
export const getDdmsSpecDrawingHistoryList = (params) => {
  return service({
    url: '/ddmsSpecDrawingHistory/getDdmsSpecDrawingHistoryList',
    method: 'get',
    params
  })
}
